﻿using PetaPoco;
using System.ComponentModel.DataAnnotations;

namespace Qy.Models
{
    [TableName("qy_admin_group")]
    [PrimaryKey("Id", AutoIncrement = true)]
    public class UserGroup
    {
        public int Id { get; set; }
        public string Groupname { get; set; }
        public string Systemrole { get; set; }

    }


    public class EditUserGroup
    {
        public int Id { get; set; }


        [Display(Name = "角色名")]
        [Required(ErrorMessage = "请填写角色名")]
        public string Groupname { get; set; }

        [Display(Name = "功能模块")]
        public string Systemrole { get; set; }


    }


    public class ViewUserGroup
    {
        public int Id { get; set; }

        [Display(Name = "角色名")]
        public string Groupname { get; set; }

        [Display(Name = "功能模块")]
        public string Systemrole { get; set; }


    }
}
